<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    
    <h:head>
        <meta http-equiv="Content-Type" 
              content="text/html; charset=UTF-8" />
        <h:outputStylesheet library="css" name="jquery-ui.min.css"/>
        <h:outputStylesheet library="css" name="bootstrap.min.css"/>
        <h:outputScript library="js" name="jquery.min.js" />
        <h:outputScript library="js" name="jquery-ui.min.js" />
        <h:outputScript library="js" name="bootstrap.min.js" />
        <title>Backend</title>
        <script>
		  $(document).ready(function() {
		    $( ".datepicker" ).datepicker();
		  });
		</script>
    </h:head>
    
    <h:body>
    
    
    <div class="container">

	      <!-- Static navbar -->
	      <div class="navbar navbar-default" role="navigation">
	        <div class="navbar-header">
	          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
	            <span class="sr-only">Toggle navigation</span>
	            <span class="icon-bar"></span>
	            <span class="icon-bar"></span>
	            <span class="icon-bar"></span>
	          </button>
	          <a class="navbar-brand" href="#">TravelDream Backend</a>
	        </div>
	        <div class="navbar-collapse collapse">
	          <ul class="nav navbar-nav">
					<li class="dropdown">
						<a href="#" class="dropdown-toggle" data-toggle="dropdown">Gestione Prodotti<b class="caret"></b></a>
						<ul class="dropdown-menu">
							<li><h:link value="Escursioni"  outcome="/backend/product/excursion/list" /></li>
							<li><h:link value="Voli"        outcome="/backend/product/flight/list" /></li>
							<li><h:link value="Hotel"       outcome="/backend/product/hotel/list" /></li>
						</ul>
					</li>
					<li><h:link value="Gestione Pacchetti"    outcome="/backend/package/list" /></li>
					<li><h:link value="Gestione Localita"    outcome="/backend/place/list" /></li>
					<li>
					<h:form>
			      		<h:commandLink value="Logout" action="#{authentication.logoutAction()}" />
			      	</h:form>
					</li>
	          </ul>
	          
	        </div><!--/.nav-collapse -->
	      </div>
	
	      <div id="" class="l">
             <ui:insert name="content">Main Content</ui:insert>
          </div>
	
	    </div> <!-- /container -->
       
    </h:body>
</html>
